CKEDITOR.dialog.add('smartfreetable', function(editor) {
	return {
		title: '自定义表格',
		width: 800,
		height: 550,
		resizable: CKEDITOR.DIALOG_RESIZE_NONE,
		contents: [{
			id: 'info',
			label: '配置',
			elements: [{
				id: 'myhtml',
				type: 'html',
				label: '这是一个HTML',
				html: '',
				onShow: function() {
					SmartFreeTable.freeTableLoaded(this.getElement().$, SmartFreeTable.freeTableId);
				},
				commit: function(widget) {
					widget.setData('r', 'r' + new Date().valueOf());
				}
			}]
		}],
		onOk: function() {
			SmartFreeTable.smartFreeTableOkSign = true;
			var dialogEle = this.getElement().$;
			SmartFreeTable.getDialogParam(dialogEle);
			SmartFreeTable.getDialogChartParam(dialogEle);
		},
		onCancel: function() {

		},
		onShow: function() {
			SmartFreeTable.dialog = this;
		}
	};
});